<!--CSS盒子模型-->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS盒子模型</title>
    <style>
        .demo{
            background-color: aqua;
            display: inline-block;  /*转换行内块元素 默认宽度为文本宽度*/
            border: 5px solid yellowgreen;  /*border是边框  solid是实线*/
            padding: 50px;
        }

        .border-demo{
            background-color: yellow;
            width: 300px;
            height: 200px;
            border-style: solid;
            border-width: 10px 0 20px 50px; /*上右下左*/
            border-color: purple;
            padding: 50px;  /*内边距*/
            margin: 50px; /*外边距*/
        }
    </style>
</head>
<body>
    <div class="demo">童话世界第一突破手GGBond</div>
    <div class="border-demo">这是一个边框示例</div>
</body>
</html>